package cn.abcsys.cloud.devops.web.dao;

import java.util.List;

import cn.abcsys.cloud.devops.web.entity.RoleAction;

import java.sql.SQLException;

/**
 * 角色权限接口
 * @author xzg
 *
 */
public interface RoleActionMapper {

	
	/**
	 * @param record
	 * @return
	 * @throws SqlException
	 */
	public int insert(RoleAction record) throws SQLException;
	
	
	/**
	 * @param id
	 * @return
	 * @throws SQLException
	 */
	public int deleteById(Integer id) throws SQLException;

	
	/**
	 * @param roleId
	 * @return
	 * @throws SQLException
	 */
	public int deleteByRoleId(Integer roleId) throws SQLException;
	
	
	/**
	 * @param record
	 * @return
	 * @throws SQLException
	 */
	public int update(RoleAction record) throws SQLException;
	

	/**
	 * @param id
	 * @return
	 */
	public RoleAction selectById(Integer id);
	

	/**
	 * @param roleAction
	 * @return
	 */
	public List<RoleAction> selectAll(RoleAction roleAction);
	
	/**
	 * @param list
	 * @return
	 * @throws SQLException
	 */
	public int insertListRA(List<RoleAction> list) throws SQLException;
	
	/**批量删除角色权限
	 * @param list
	 * @return
	 * @throws SQLException
	 */
	public int deleteRoleActions(List<Integer> list) throws SQLException;
}
